<div class="modal" ng-controller="KisBpmChoseCandidateGroupsCtrl">
    <div class="modal-dialog">
        <div class="modal-content form-horizontal">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true" ng-click="close()">&times;</button>
                <h2>请选择角色</h2>
            </div>
            <div class="modal-body">
                <table class="table">
                    <thead>
                    <tr>
                        <th><input type="checkbox" ng-click="selectAll($event)"></th>
                        <th>名称</th>
                        <th>标识</th>
                        <th>描述</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr ng-repeat="candidateGroup in candidateGroups">
                        <td>
                            <input type="checkbox" ng-model="candidateGroup.selected" ne-true-value="{{candidateGroup.id}}" ng-false-value="false">
                        </td>
                        <td>{{candidateGroup.name}}</td>
                        <td>{{candidateGroup.code}}</td>
                        <td>{{candidateGroup.tips}}</td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <div class="modal-footer">
                <button ng-click="close()" class="btn btn-primary" translate>ACTION.CANCEL</button>
                <button ng-click="save()" class="btn btn-primary" translate>ACTION.SAVE</button>
            </div>
        </div>
    </div>
</div>